<style type='text/css'>
table.tb_cuxiao tr.row_over_bg td{
   background-color:#e6eef7;
}
table.tb_cuxiao tr.row_out_bg td{
   background-color:#fff;
}
table.tb_cuxiao{
  display:table;
  width:80%;
  border:1px solid #ccc;
}
table.tb_cuxiao td{
  border-bottom:1px solid  #ccc;
}
table.tb_cuxiao td.top_cuxiao{
border-bottom:1px solid  #ccc;
}
table.tb_cuxiao td.cuxiao_title{
  width:100%;
  height:40px;
  line-height:40px;
  border-bottom:1px solid #9cb8cc;
}

table.tb_cuxiao td div.cuxiao_line1{
  display:block;
  float:left;
  height:20px;
  line-height:30px;
  text-align:left;
  padding-left:5px;
  width:300px;
}
table.tb_cuxiao td div#cuxiao_line1 a{
  width:30px;
  text-align:center;
  height:20px;
  line-height:20px;
  padding-left:5px;
  padding-right:5px;
}
table.tb_cuxiao th{
  height:20px;
  line-height:20px;
}
table.tb_cuxiao th div{
display:block;
  height:20px;
  line-height:20px;
  overflow:hidden;
}
table.tb_cuxiao td div.cuxiao_line2{
  display:block;
  float:right;
  height:20px;
  line-height:20px;
  text-align:right;
  padding-right:5px;
}
table.cuxiao_inner{
display:table;
float:left;
 margin-left:5px;
 overflow:hidden;
}
table.cuxiao_inner tr td{
 border:0;
 align:left;
 text-align:left;
}
table.cuxiao_inner tr td a.title{
 float:left;
}
table.cuxiao_inner tr td span{
 float:left;
}
.content{
  display:block;
  float:left;
  height:auto;
  line-height:20px;
  padding-right:5px;
}
.count_left{
  display:block;
  width:100px;
  height:20px;
  float:left;
  padding-left:10px;
  overflow:hidden;
}
.page_right{
  display:block;
  width:auto;
  height:20px;
  float:right;
  padding-right:30px;
  overflow:hidden;
}
.Cuxiao_Div{
    display:none;
    width: 430px;
    min-height: 230px;
    border: 2px solid #4478C2;
    background-color:#FFF;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
}
.Cuxiao_Div h2
{
    padding:2px;
    padding-left:5px;
}
.Cuxiao_Div h2 em {
    cursor: pointer;
    display: inline-block;
    height: 11px;
    position: absolute;
    right: 10px;
    width: 11px;
}
.Cuxiao_Div table{
    margin:5px;

}
.Cuxiao_Div table tr td
{
   margin:5px;
}
.red{color:red;}
.green{color:green;}
.yellow{color:yellow;}
</style>

<table class='tb_cuxiao table01'  width='100%' cellpadding='5' cellspacing="0" >
<tr>
  <td align='left' colspan=10 width='100%'   class='top_cuxiao'>
  <div class="cuxiao_line1" id="cuxiao_line1">
  <select name='cityid'onchange="chg_url('<{$type}>',this.value)">
        <{foreach from=$user_cities item=city }>
		       <option value='<{$city.id}>' <{if $city.id == $city_id }>selected='selected'<{/if}>><{$city.name}></option>
			         <{/foreach}>
					      </select>
  <a href='/fsend/list/sms/<{$city_id}>/1'>群发短信</a>|<a href='/fsend/list/email/<{$city_id}>/1'>群发邮件</a>
  </div>
  </td>
</tr>
<tr>
  <th align='center'  width='30%' >
    <{if $type == 'sms'}>
     <div>短信内容</div>
    <{/if}>
    <{if $type == 'email'}>
     <div>邮件标题</div>
    <{/if}> 
  </th>
  <th width='20%' align='center'><div>目标客户</div></th>
  <th width='10%' align='center'><div>数量</div></th>
  <th width='10%' align='center'><div>店铺</div></th>
  <th width='20%' align='center'><div>申请时间</div></th>
  <th width='10%' align='center'><div>操作</div></th>
</tr>
<{foreach from=$record_list  item = ls}>
<tr  onmouseover="this.className='row_over_bg'" onmouseout="this.className='row_out_bg'">
   <td align='left'>
     <{if $type == 'sms'}>
     <div><{$ls.content}></div>
    <{/if}>
    <{if $type == 'email'}>
     <div>
       <{php}>
        $em =  Shop_Relate_Mail::get_sent_mail_detail($this->_tpl_vars['ls']['task_id']);
        echo isset($em['title']) ? $em['title'] : '';
       <{/php}>
     </div>
     <a href="javascript:void(0);" onclick="openwin(<{$ls.task_id}>)">点击查看内容</a> 
    <{/if}>
   </td>
   <td align='center'>
     <{foreach from=$ls.target_type_name item=record_ts}>
             <{$record_ts}><br />
     <{/foreach}>
   </td>
   <td>
     <{$ls.send_count}>
   </td>
   <td>
     <a target='_blank' href="<{php}>echo Shop::shop_detail_url($this->_tpl_vars['ls']['shop_id']);<{/php}>">
       <{php}>echo Shop::name($this->_tpl_vars['ls']['shop_id']);<{/php}>
     </a>
   </td>
   <td><{php}>echo date("Y年m月d日 H:i",$this->_tpl_vars['ls']['send_time']);<{/php}></td>
   <td align='center'>
		<{if $ls.send_status == 1}>
		   <a href="javascript:void(0);" onclick="fsend(<{$ls.task_id}>,'<{$type}>','passed')">批准</a> 
		   <a href="javascript:void(0);" onclick="fsend(<{$ls.task_id}>,'<{$type}>','unpassed')">删除</a>
		<{/if}>
		<{if $ls.send_status == 2}>
		   <span class="green">审核通过</span>
		<{/if}>
		<{if $ls.send_status == 3}>
		   <span class="red">审核未通过</span>
		<{/if}>
   </td>
</tr>
<{/foreach}>
<tr><td colspan="10" style="border:0"><div class='count_left'>共<{$count}>条记录</div><div class='page_right'><{$pagination}></div></td></tr>
</table>
